//定义弹框的标题
export enum ResultStatus {
  SUCCESS = 20000,
  FAIL = 50000,
  CODE_INVALID = 50004,
  NAME_OR_PWD_ERR,
  NOT_TOKEN = 50008,
  INVALID_TOKEN = 50009,
  TOKEN_TIMEOUT = 50010,
  BE_REPLACED = 50011,
  KICK_OUT = 50012,
  TOKEN_ERROR = 50013
}

// 这些状态码需要重新登录，统一写到一起
export const ReLoginStatus = {
  NOT_TOKEN: 50008,
  INVALID_TOKEN: 50009,
  TOKEN_TIMEOUT: 50010,
  BE_REPLACED: 50011,
  KICK_OUT: 50012,
  TOKEN_ERROR: 50013
}

// 主题色
export const THEME_COLOR = 'themeColor'

// 用户id
// export const LOGIN_ID = 'loginId'

// token
export const TOKEN = 'token'

// 按钮权限
export const PERMISSIONS = 'permissions'

// 用户基本信息
export const USER_INFO = 'userInfo'

// 用户头像
// export const HEAD_PORTRAIT = 'headPortrait'

// 用户菜单列表
export const MENULIST = 'menuList'

// 选项卡
export const TAB_LIST = 'tabList'

// 批量按钮
export enum BatchBtns {
  Banned = 'batchBanned',
  UniteDisable = 'batchUniteDisable',
  Delete = 'batchDelete',
  Pass = 'batchPass'
}

// 单操作按钮
export enum SingleBtns {
  Add = 'add',
  Edit = 'edit',
  Delete = 'delete',
  Banned = 'banned',
  KickOut = 'kickout',
  ResetPwd = 'resetPwd',
  Permissions = 'permissions',
  Reject = 'reject',
  Pass = 'pass',
  Detail = 'detail',
  SetRole = 'setRole',

  RowAdd = 'rowAdd'
}
